class base{
    public int a;
    public int b;
    public int c=100;
    public void methodbase(){
        System.out.println("base");
    }
}

class derived extends base{
    public int c=9;

    public void methodderviced(){
        System.out.println("dervied!!!");
    }

    public void methodbase(int a){
        System.out.println("derived");
    }

    public void func(){
        System.out.println(super.a);
        super.methodbase();
        methodderviced();
    }

    public void func1(){
        //子类有 那么就拿子类的 子类没 就拿父类的
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);//如果父类 和子类 有同名的成员变量，优先访问 子类自己的
        System.out.println(super.c);
    }
}

public class test_11_11_0_1 {

//    public static void main(String[] args) {
//        derived d=new derived();
//        d.func();
//    }

//    public static void main(String[] args) {
//        final int[] array={1,2,3};
//    }

}




